package org.aiforum.web.action;

import java.io.IOException;

import org.aiforum.domain.Contact;
import org.aiforum.frountend.common.Response;
import org.aiforum.frountend.common.Responsehelper;
import org.aiforum.web.common.AiActionContext;
import org.apache.struts2.ServletActionContext;

/**
 * 联系我们请求Action
 * @author VIC
 *
 */
public class ContactAction extends AiActionContext {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 创建请求对象
	private Contact contact = new Contact();
	
	/**
	 * 发送联系我们信息
	 * @return
	 */
	public void send(){
		Response responseObj = contactService.save(contact);
		Responsehelper.print("message?message="+ responseObj.getMessage(),ServletActionContext.getResponse());
	}
	public Contact getContact() {
		return contact;
	}
	public void setContact(Contact contact) {
		this.contact = contact;
	}
}